#ifndef _TELLTALE_MODEL_LOGIC_AIRGAGMODEL_H_
#define _TELLTALE_MODEL_LOGIC_AIRGAGMODEL_H_

#include "Common/HmiAdapterBase.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef enum 
{
    State_Init = 0x00,
    State_Selfcheck,
    State_Off,
    State_On,
    State_Emergency,
} SafetyBeltState;

typedef enum {
    EV_Unknown = 0x00,
    EV_Off,
    EV_On,
} SafetyBeltEvent;

typedef enum {
    Blink_Off = 0x00,
    Blink_On
} SafetyBeltBlinkState;

typedef struct SafetyBeltWorkingData
{
    SafetyBeltEvent driverEvent;
    SafetyBeltEvent passengerEvent;
    SafetyBeltBlinkState driverBlinkState;
    SafetyBeltBlinkState passengerBlinkState;
    uint32_t blinkCount;
    uint32_t blinkTimeout;
    SafetyBeltState currentState;
    bool hasDriverWidget;
    bool hasPassangerWidget;
} SafetyBeltWorkingData;

static SafetyBeltWorkingData SafetyBeltWorkingDataInstance;

typedef struct SafetyBeltModel
{
    ImeterModel model_;
} SafetyBeltModel;

extern SafetyBeltModel g_SafetyBeltModelInstance;

#ifdef __cplusplus
}
#endif

#endif